package com.mutual.family.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mutual.family.dao.FamilyDao;
import com.mutual.family.pojo.Family;
import com.mutual.family.service.FamilyService;

@Service
public class FamilyServiceImpl implements FamilyService {

	@Resource
	private FamilyDao familyDao;

	@Override
	public void insert(Family entity) {
		familyDao.insertSelective(entity);
	}

	@Override
	public void updateByPrimaryKey(Family entity) {
		familyDao.updateByPrimaryKeySelective(entity);
	}

	@Override
	public Family selectByPrimaryKey(Serializable entityid) {
		return familyDao.selectByPrimaryKey(entityid);
	}

	@Override
	public List<Family> selectFamilyList(Family family) {
		return familyDao.selectObjectList(family);
	}

	@Override
	public int selectTotalCount(Map<String, Object> param) {
		return familyDao.selectTotalCount(param);
	}
	
}
